/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race White European</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15815 (C-0-T14914-S15814-S15815-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceWhiteEuropean()
 * @model extendedMetaData="name='RaceWhiteEuropean'"
 * @generated
 */
public enum RaceWhiteEuropean implements Enumerator {
	/**
	 * The '<em><b>21089</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21089_VALUE
	 * @generated
	 * @ordered
	 */
	_21089(0, "_21089", "2108-9"),

	/**
	 * The '<em><b>21097</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21097_VALUE
	 * @generated
	 * @ordered
	 */
	_21097(1, "_21097", "2109-7"),

	/**
	 * The '<em><b>21105</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21105_VALUE
	 * @generated
	 * @ordered
	 */
	_21105(2, "_21105", "2110-5"),

	/**
	 * The '<em><b>21113</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21113_VALUE
	 * @generated
	 * @ordered
	 */
	_21113(3, "_21113", "2111-3"),

	/**
	 * The '<em><b>21121</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21121_VALUE
	 * @generated
	 * @ordered
	 */
	_21121(4, "_21121", "2112-1"),

	/**
	 * The '<em><b>21139</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21139_VALUE
	 * @generated
	 * @ordered
	 */
	_21139(5, "_21139", "2113-9"),

	/**
	 * The '<em><b>21147</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21147_VALUE
	 * @generated
	 * @ordered
	 */
	_21147(6, "_21147", "2114-7"),

	/**
	 * The '<em><b>21154</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21154_VALUE
	 * @generated
	 * @ordered
	 */
	_21154(7, "_21154", "2115-4"),

	/**
	 * The '<em><b>21162</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21162_VALUE
	 * @generated
	 * @ordered
	 */
	_21162(8, "_21162", "2116-2");

	/**
	 * The '<em><b>21089</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21089</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21089
	 * @model literal="2108-9"
	 * @generated
	 * @ordered
	 */
	public static final int _21089_VALUE = 0;

	/**
	 * The '<em><b>21097</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21097</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21097
	 * @model literal="2109-7"
	 * @generated
	 * @ordered
	 */
	public static final int _21097_VALUE = 1;

	/**
	 * The '<em><b>21105</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21105</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21105
	 * @model literal="2110-5"
	 * @generated
	 * @ordered
	 */
	public static final int _21105_VALUE = 2;

	/**
	 * The '<em><b>21113</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21113</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21113
	 * @model literal="2111-3"
	 * @generated
	 * @ordered
	 */
	public static final int _21113_VALUE = 3;

	/**
	 * The '<em><b>21121</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21121</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21121
	 * @model literal="2112-1"
	 * @generated
	 * @ordered
	 */
	public static final int _21121_VALUE = 4;

	/**
	 * The '<em><b>21139</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21139</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21139
	 * @model literal="2113-9"
	 * @generated
	 * @ordered
	 */
	public static final int _21139_VALUE = 5;

	/**
	 * The '<em><b>21147</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21147</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21147
	 * @model literal="2114-7"
	 * @generated
	 * @ordered
	 */
	public static final int _21147_VALUE = 6;

	/**
	 * The '<em><b>21154</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21154</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21154
	 * @model literal="2115-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21154_VALUE = 7;

	/**
	 * The '<em><b>21162</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21162</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21162
	 * @model literal="2116-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21162_VALUE = 8;

	/**
	 * An array of all the '<em><b>Race White European</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceWhiteEuropean[] VALUES_ARRAY =
		new RaceWhiteEuropean[] {
			_21089,
			_21097,
			_21105,
			_21113,
			_21121,
			_21139,
			_21147,
			_21154,
			_21162,
		};

	/**
	 * A public read-only list of all the '<em><b>Race White European</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceWhiteEuropean> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race White European</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteEuropean get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceWhiteEuropean result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race White European</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteEuropean getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceWhiteEuropean result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race White European</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteEuropean get(int value) {
		switch (value) {
			case _21089_VALUE: return _21089;
			case _21097_VALUE: return _21097;
			case _21105_VALUE: return _21105;
			case _21113_VALUE: return _21113;
			case _21121_VALUE: return _21121;
			case _21139_VALUE: return _21139;
			case _21147_VALUE: return _21147;
			case _21154_VALUE: return _21154;
			case _21162_VALUE: return _21162;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceWhiteEuropean(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceWhiteEuropean
